#super
Description: Obtain the proxy object for the superclass.
def super():
'''
Obtain the proxy object for the superclass
:return: The proxy object of the current class's superclass
'''
def super(type, obj=None):
'''
Obtain the proxy object for the superclass
:param type: The class whose superclass proxy is to be obtained
:param obj: The object instance
:return: The proxy object of the superclass
'''
Example:
class Pet:
def speak(self):
print('Some animal is speaking')
class Cat(Pet):
def speak(self):
print('Meow Meow Meow')
def super_speak(self):
super().speak()
cat = Cat()
cat.speak()
cat.super_speak()
super(Cat, cat).speak()